package com.hm.hsw1;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Properties;
import java.util.Set;

public class Demo2 {
    public static void main(String[] args) throws Exception {
        Properties prop = new Properties();
        prop.load(new FileReader("iphone.properties"));
        Set<String> set = prop.stringPropertyNames();
        set.stream().forEach(o-> System.out.println(o+"->"+prop.getProperty(o)));
    }
}
